<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" src="./js/vue.js"></script>
</head>
<body>
<div id="mmm">
<!--v-model会实现双向绑定:表达元素内容改变时，vue中对于的数据也会改变，vue中的数据改变对于的表单元素也会改变-->
<input type="text" v-model="name">
{{name}}
<button @click="dj">dianji</button>
</div>
</body>
<script>
    let mm=new Vue({
        el:"#mmm    ",
        data:{
          name:"王桑"
        },
        methods:{
            dj(){
                this.name="mingmei"
            }
        }
    })
</script>
</html>